<?php 
	$link = mysql_connect(DB_IP, DB_UNAME, DB_UPASS) or die (mysql_error());
	mysql_select_db(DB_NAME) or die (mysql_error());
	//mysql_query("SET NAMES 'UTF-8'");
	if(isset($_GET['command'])) {
		$logger->log($_GET['command']);
		switch($_GET['command']){
			case 'rental_items':
			case 'gallery_of_finished_products':
			case 'sell_items':
			case 'product_items':
				include 'queries/product_items.php';
				break;
			case 'login':
				include 'queries/login.php';
				break;
			case 'admin':
				include 'queries/admin.php';
				break;
		}
	}
	mysql_close($link);
?>